package cn.zswltech.gruul.exception;

import cn.zswltech.gruul.common.result.MSG;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/2/2 11:23
 */
public class AuthException extends RuntimeException{

    private Integer code;

    private String errMsg;

    public AuthException(MSG msg){
        super(msg.getMsg());
        this.code = msg.code();
        this.errMsg = msg.getMsg();
    }


}
